package bean;


public class Flight {

	
	
	private String flightNumber = null;
	
	private String airlineName = null;
	
	private String source = null;
	
	private String destination = null;
	
	private int numSeats = 0;
	
	private int numAvailableSeats = 0;
	
	private String pilotName = null;
	
	private String intermediate = null;
	
	private String intermediateArrivalTime = null;
	
	private String intermediateDepartureTime = null;
	
	private String timeOfFlight = null;
	
	private double ticketPrice = 0;
	
	private String status = null; 
	
	private long flightId = 0;
		
	public String getIntermediateArrivalTime() {
		return intermediateArrivalTime;
	}

	public void setIntermediateArrivalTime(String intermediateArrivalTime) {
		this.intermediateArrivalTime = intermediateArrivalTime;
	}

	public String getIntermediateDepartureTime() {
		return intermediateDepartureTime;
	}

	public void setIntermediateDepartureTime(String intermediateDepartureTime) {
		this.intermediateDepartureTime = intermediateDepartureTime;
	}
	
	public long getFlightId() {
		return flightId;
	}

	public int getNumAvailableSeats() {
		return numAvailableSeats;
	}

	public void setNumAvailableSeats(int numAvailableSeats) {
		this.numAvailableSeats = numAvailableSeats;
	}
	
	
	public void setFlightId(long flightId) {
		this.flightId = flightId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public double getTicketPrice() {
		return ticketPrice;
	}

	public void setTicketPrice(double ticketPrice) {
		this.ticketPrice = ticketPrice;
	}

	public String getTimeOfFlight() {
		return timeOfFlight;
	}

	public void setTimeOfFlight(String timeOfFlight) {
		this.timeOfFlight = timeOfFlight;
	}

	private double price = 0;

	public String getIntermediate() {
		return intermediate;
	}

	public void setIntermediate(String intermediate) {
		this.intermediate = intermediate;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getFlightNumber() {
		return flightNumber;
	}

	public void setFlightNumber(String flightNumber) {
		this.flightNumber = flightNumber;
	}

	public String getAirlineName() {
		return airlineName;
	}

	public void setAirlineName(String airlineName) {
		this.airlineName = airlineName;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public int getNumSeats() {
		return numSeats;
	}

	public void setNumSeats(int numSeats) {
		this.numSeats = numSeats;
	}

	public String getPilotName() {
		return pilotName;
	}

	public void setPilotName(String pilotName) {
		this.pilotName = pilotName;
	}
	
	@Override
	public boolean equals(Object arg0) {
		Flight flight = (Flight) arg0;
		
		if(this.flightId == flight.flightId){
			return true;
		}
		return false;
	}
	
	
}
